
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Marwen
 */
public class Notification extends JOptionPane{
    private Thread t;

    public Notification() {
        System.out.println("duuuuuuuuude");
        
        JOptionPane.showMessageDialog(null, "Le trader a été ajouté avec succès", "Information", JOptionPane.INFORMATION_MESSAGE);
        System.out.println("gggg");
         t = new Thread(new Traitement());
    }
    
    class Traitement implements Runnable{
	
        @Override
		public void run(){
			
			for(int val = 0; val <= 100; val++){
				try {
                                    System.out.println("threeaaad");
					Thread.sleep(0);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
				}
			}
                        System.out.println("ff");
                        disable();
                       
                        
		}
    }
}
